export const panelsShown = (params) => {
  let arr = Array.isArray(params) ? params : [params]
  // 配置做两块区域的tab显示功能
  const panelsShown = JSON.stringify([
      // 左侧
      [{
          id: "circular",
          name: "Circular Map[环形图]",
          active: true,
          canClose: false,
          // fullScreen: true,
        },
        {
          id: "sequence",
          name: "Sequence Map[序列图]",
          active: false,
          canClose: false,
        },
        {
          id: "rail",
          name: "Linear Map[线形图]",
          active: false,
          canClose: false,
        },
        {
          id: "properties",
          name: "Properties[属性设置]",
          active: false,
          canClose: false,
        },
      ],
  ])

  let panelsShownObj = JSON.parse(panelsShown)
  arr.forEach(e => {
    panelsShownObj[0].push(e)
  })

  return panelsShownObj
}